<!-- Câu hỏi -->
<div builder="3" class="widget-box widget-editing col-table">
    <!-- Câu hỏi hiện thị -->
    <div class="widget-question" hidden="hidden">
        <div class="widget-header">
            <h5><span class="col-number">3</span>. <span class="col-title">Which do you like best?</span></h5>
        </div>

        <div class="widget-body" >
            <div class="widget-main">
                <table class="table table-bordered answer-table">
                    <thead>
                    <tr>
                        <th></th>
                        <th>Vài lần 1 ngày</th>
                        <th>1 lần 1 ngày</th>
                        <th>Vài lần 1 tuần</th>
                        <th>1 lần 1 tuần</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr>
                        <td>Chỉ nha khoa</td>
                        <td>
                            <input name="Q3-1" type="radio">
                        </td>
                        <td>
                            <input name="Q3-1" type="radio">
                        </td>
                        <td>
                            <input name="Q3-1" type="radio">
                        </td>
                        <td>
                            <input name="Q3-1" type="radio">
                        </td>
                    </tr>
                    <tr>
                        <td>Sữa dưỡng da</td>
                        <td>
                            <input name="Q3-2" type="radio">
                        </td>
                        <td>
                            <input name="Q3-2" type="radio">
                        </td>
                        <td>
                            <input name="Q3-2" type="radio">
                        </td>
                        <td>
                            <input name="Q3-2" type="radio">
                        </td>
                    </tr>

                    <tr>
                        <td>Sữa dưỡng da</td>
                        <td>
                            <input name="Q3-3" type="radio">
                        </td>
                        <td>
                            <input name="Q3-3" type="radio">
                        </td>
                        <td>
                            <input name="Q3-3" type="radio">
                        </td>
                        <td>
                            <input name="Q3-3" type="radio">
                        </td>
                    </tr>

                    <tr>
                        <td>Sữa dưỡng da</td>
                        <td>
                            <input name="Q3-4" type="radio">
                        </td>
                        <td>
                            <input name="Q3-4" type="radio">
                        </td>
                        <td>
                            <input name="Q3-4" type="radio">
                        </td>
                        <td>
                            <input name="Q3-4" type="radio">
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>

    <!-- Chỉnh sửa câu hỏi-->
    <div class="widget-edit table-edit">
        <div class="widget-edit-method">Q<span class="col-number">3</span>: Table</div>

        <div class="widget-edit-question form-group">
            <textarea class="textarea col-title" placeholder="Question name"></textarea>
            <!---tag -->
            <div class="tag">
                <span class="question-tag"><i class="fa fa-tag"></i> Tag <i class="fa fa-caret-down"></i></span>
                <div class="survey-tag">
                    <div class="tagged">
                    </div>
                    <div class="tag-input">
                        <input type="text" placeholder="Tag">
                    </div>
                    <div class="search-result">
                        <ul>
                            <?php
                                foreach($tag as $value){
                                    echo '<li>'.$value['attr_name'].'</li>';
                                }
                            ?>
                        </ul>
                    </div>
                </div>
            </div>
        </div>

        <!-- Hàng-->
        <div class="widget-edit-answer col-edit-row">
            <div class="widget-edit-answer-title">Row Choices</div>
            <div class="col-table-answer">
                <div class="col-table-answer-left">
                    <ul class="widget-edit-answer-body form-control">

                        <li class="form-group">
                            <div class="col-answer">
                                <div class="col-left">
                                    <input class="input" type="text" placeholder="Answer">
                                    <!---tag -->
                                    <div class="tag">
                                        <span class="question-tag"><i class="fa fa-tag"></i> Tag <i class="fa fa-caret-down"></i></span>
                                        <div class="survey-tag">
                                            <div class="tagged">
                                            </div>
                                            <div class="tag-input">
                                                <input type="text" placeholder="Tag">
                                            </div>
                                            <div class="search-result">
                                                <ul>
                                                    <?php
                                                        foreach($tag as $value){
                                                            echo '<li>'.$value['attr_name'].'</li>';
                                                        }
                                                    ?>
                                                </ul>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-right">
                                    <span class="widget-edit-add-question"><i class="fa fa-plus-circle"></i></span>
                                    <span class="widget-edit-remove-question"><i class="fa fa-times-circle"></i></span>
                                </div>
                            </div>
                        </li>

                        <li class="form-group">
                            <div class="col-answer">
                                <div class="col-left">
                                    <input class="input" type="text" placeholder="Answer">
                                    <!---tag -->
                                    <div class="tag">
                                        <span class="question-tag"><i class="fa fa-tag"></i> Tag <i class="fa fa-caret-down"></i></span>
                                        <div class="survey-tag">
                                            <div class="tagged">
                                            </div>
                                            <div class="tag-input">
                                                <input type="text" placeholder="Tag">
                                            </div>
                                            <div class="search-result">
                                                <ul>
                                                    <?php
                                                        foreach($tag as $value){
                                                            echo '<li>'.$value['attr_name'].'</li>';
                                                        }
                                                    ?>
                                                </ul>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-right">
                                    <span class="widget-edit-add-question"><i class="fa fa-plus-circle"></i></span>
                                    <span class="widget-edit-remove-question"><i class="fa fa-times-circle"></i></span>
                                </div>
                            </div>
                        </li>

                        <li class="form-group">
                            <div class="col-answer">
                                <div class="col-left">
                                    <input class="input" type="text" placeholder="Answer">
                                    <!---tag -->
                                    <div class="tag">
                                        <span class="question-tag"><i class="fa fa-tag"></i> Tag <i class="fa fa-caret-down"></i></span>
                                        <div class="survey-tag">
                                            <div class="tagged">
                                            </div>
                                            <div class="tag-input">
                                                <input type="text" placeholder="Tag">
                                            </div>
                                            <div class="search-result">
                                                <ul>
                                                    <?php
                                                        foreach($tag as $value){
                                                            echo '<li>'.$value['attr_name'].'</li>';
                                                        }
                                                    ?>
                                                </ul>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-right">
                                    <span class="widget-edit-add-question"><i class="fa fa-plus-circle"></i></span>
                                    <span class="widget-edit-remove-question"><i class="fa fa-times-circle"></i></span>
                                </div>
                            </div>
                        </li>

                    </ul>
                </div>
                <div class="col-table-answer-right">
                    <!-- Hình vẽ rows-->
                    <div class="widget-edit-table-rows-img">
                        <p>Rows</p>
                        <div class="table-rows-img"></div>
                    </div>
                </div>
            </div>
        </div>

        <!-- Cột -->
        <div class="widget-edit-answer col-edit-column">
            <div class="widget-edit-answer-title">Column Choices</div>
            <div class="col-table-answer">
                <div class="col-table-answer-left">
                    <ul class="widget-edit-answer-body form-control">

                        <li class="form-group">
                            <div class="col-answer">
                                <div class="col-left">
                                    <input class="input" type="text" placeholder="Answer">
                                </div>
                                <div class="col-right">
                                    <span class="widget-edit-add-question"><i class="fa fa-plus-circle"></i></span>
                                    <span class="widget-edit-remove-question"><i class="fa fa-times-circle"></i></span>
                                </div>
                            </div>
                        </li>

                        <li class="form-group">
                            <div class="col-answer">
                                <div class="col-left">
                                    <input class="input" type="text" placeholder="Answer">
                                </div>
                                <div class="col-right">
                                    <span class="widget-edit-add-question"><i class="fa fa-plus-circle"></i></span>
                                    <span class="widget-edit-remove-question"><i class="fa fa-times-circle"></i></span>
                                </div>
                            </div>
                        </li>

                        <li class="form-group">
                            <div class="col-answer">
                                <div class="col-left">
                                    <input class="input" type="text" placeholder="Answer">
                                </div>
                                <div class="col-right">
                                    <span class="widget-edit-add-question"><i class="fa fa-plus-circle"></i></span>
                                    <span class="widget-edit-remove-question"><i class="fa fa-times-circle"></i></span>
                                </div>
                            </div>
                        </li>
                    </ul>
                </div>
                <div class="col-table-answer-right">
                    <!-- Hình vẽ columns -->
                    <div class="widget-edit-table-column-img">
                        <p>Columns</p>
                        <div class="table-column-img"></div>
                    </div>
                </div>
            </div>
        </div>
        <!-- Lưu hoặc hủy lưu chỉnh sửa -->
        <div class="widget-edit-option">
            <input class="btn save-question" type="button" value="Ok">
            <input class="btn cancel-question" type="button" value="Cancel">
        </div>
    </div>

    <!-- Xóa hoặc edit câu hỏi.-->
    <div class="widget-option">
        <span onclick="editQuestion(this);" class="edit-survey-question"><i class="fa fa-pencil-square-o"></i></span>
        <span onclick="removeQuestion(this);" class="remove-survey-question"><i class="fa fa-times"></i></span>
    </div>
</div>
